﻿#ifndef ANALYZER_SERVER_H
#define ANALYZER_SERVER_H
class Server
{
public:
    explicit Server();
    ~Server();

public:
    void start(void* arg);
};

void api_index(struct evhttp_request* req, void* arg);
void api_health(struct evhttp_request* req, void* arg);
void api_controls(struct evhttp_request* req, void* arg);
void api_control(struct evhttp_request* req, void* arg);
void api_control_add(struct evhttp_request* req, void* arg);
void api_control_cancel(struct evhttp_request* req, void* arg);
void parse_get(struct evhttp_request* req, struct evkeyvalq* params);
void parse_post(struct evhttp_request* req, char* buff);
void api_algorithms(struct evhttp_request* req, void* arg);  // 获取支持的算法列表
void api_algorithm_detail(struct evhttp_request* req, void* arg);  // 获取指定编号的算法信息
void api_analyze_image(struct evhttp_request* req, void* arg);

#endif //ANALYZER_SERVER_H

